﻿using AutoMapper;
using MyMES.Domain.W.Liststructure;
using MyMES.Domain.yjb;
using MyMES.Domain.zmc;
using MyMES.Domain.zyy;


using MyMES.Writer.API.Application.Commends.Departments;
using MyMES.Writer.API.Application.Commends.Enterprises;
using MyMES.Writer.API.Application.Commends.pressions;
using MyMES.Writer.API.Application.Commends;

using MyMES.Domain.zyy;
using MyMES.Writer.API.Application.CommendHandlers.Works;
using MyMES.Writer.API.Application.Commends.pressions;
using MyMES.Writer.API.Application.Commends.Proces;
using MyMES.Writer.API.Application.Commends.Roles;
using MyMES.Writer.API.Application.Commends.settingCommand;
using MyMES.Writer.API.Application.Commends.W.realize;
using MyMES.Domain.zyy;
using MyMES.Writer.API.Application.Commends.pressions;
using MyMES.Writer.API.Application.Commends.Works;
using MyMES.Writer.API.Application.Commends.Customers;
using MyMES.Writer.API.Application.CommendHandlers.settingCommand;
using MyMES.Writer.API.Application.Commends.Incominginformations;
using MyMES.Writer.API.Application.Commends.Requisitions;
using MyMES.Writer.API.Application.CommendHandlers.BOMs;
using MyMES.Writer.API.Application.Commends.BOMs;
using MyMES.Writer.API.Application.Commends.Productionwork;
using MyMES.Writer.API.Application.Commends.Productionorderss;
using MyMES.Writer.API.Application.CommendHandlers.Inventorylists;
using MyMES.Writer.API.Application.Commends.BOMguans;
using MyMES.Writer.API.Application.Commends.BomOperates;
using MyMES.Writer.API.Application.CommendHandlers.BOMguans;



namespace MyMES.Writer.API
{
    public class AutoMapperFilePro:Profile
    {
        public AutoMapperFilePro()
        {

       
            CreateMap<Pression, AddPressionCommand>().ReverseMap();
            CreateMap<Pression,DeleteCommand>().ReverseMap();
            CreateMap<Pression,UpdateCommand>().ReverseMap();
            CreateMap<Role, AddRolecommand>().ReverseMap();
            CreateMap<Pression,AddPressionCommand>().ReverseMap();
            CreateMap<Pression,DeleteCommand>().ReverseMap();
            CreateMap<Pression, UpdateCommand>().ReverseMap();
            CreateMap<Role, AddRolecommand>().ReverseMap();

            //生产路线
            CreateMap<Process,CreateProcessCommends>().ReverseMap();
            CreateMap<Process,DelProcessCommends>().ReverseMap();
            CreateMap<Process,UpdataProcessCommends>().ReverseMap();

            //YJB
            CreateMap<Warehouse, DelCommand>().ReverseMap();
            CreateMap<Warehouse, AddCommand>().ReverseMap();
            CreateMap<InventoryTransfer, AddInventoryTransferCommand>().ReverseMap();
            CreateMap<Warehouse, UpdateCommands>().ReverseMap();
            CreateMap<Supplier,AddSupplierCommands>().ReverseMap();
            CreateMap<Supplier, DelSupplierCommands>().ReverseMap();
            CreateMap<Supplier, UpdateSupplierCommands>().ReverseMap();
            CreateMap<ProcessInfo, ProcessInfoCommand>().ReverseMap();
            CreateMap<ProcessInfo, UpdateProcessInfoCommand>().ReverseMap();
            CreateMap<WorkOrderInfo, AddWorkOrderInfoCommand>().ReverseMap();
            CreateMap<TaskInfo, AddTaskInfoCommand>().ReverseMap();
            CreateMap<TaskInfo, DelTaskInfoCommand>().ReverseMap();
            CreateMap<TaskInfo, UpdateTaskInfoCommands>().ReverseMap();
            CreateMap<ProductionTasks, AddgttCommand>().ReverseMap();
            CreateMap<ProductionTasks, UpdategttCommands>().ReverseMap();
            CreateMap<ProductionTasks, DelgttCommand>().ReverseMap();
            CreateMap<TransferOrder, AddTBCommand>().ReverseMap();
            CreateMap<TransferOrder, DelTBCommand>().ReverseMap();
            CreateMap<TransferOrder, UpdateTBCommand>().ReverseMap();
            CreateMap<InventoryTransfer, DelInventoryTransferCommand>().ReverseMap();
            CreateMap<InventoryTransfer, UpdateInventoryTransferCommand>().ReverseMap();
            CreateMap<PurchaseOrder, AddPurchaseOrderCommand>().ReverseMap();

            //部门
            CreateMap<Department,CreateDepartmentsCommends>().ReverseMap();

            //企业
            CreateMap<Enterprise, CreateEnterprisesCommends>().ReverseMap();

            

            //产品物料
            CreateMap<Materialmanagement, AddMaterialmanagementCommands>().ReverseMap();
            CreateMap<Materialmanagement, DelMaterialmanagementCommands>().ReverseMap();
            CreateMap<Materialmanagement, UpdateMaterialmanagementCommands>().ReverseMap();
            CreateMap<Materialproductclassification, AddMaterialproductclassificationCommands>().ReverseMap();
            CreateMap<Materialproductclassification, DelMaterialproductclassificationCommands>().ReverseMap();
        CreateMap<Materialproductclassification,UpdateMaterialproductclassificationCommands>().ReverseMap();
            CreateMap<Materialproductclassification,UpdateMaterialproductclassificationCommands>().ReverseMap();
            //生产工单
            CreateMap<WorkOrder, AddWorksCommands>().ReverseMap();
          


            //客户
            CreateMap<Customermanagement, CreateCustomersCommends>().ReverseMap();
            CreateMap<Customermanagement, UpdataCustomersCommends>().ReverseMap();
            CreateMap<Customermanagement, DelCustomersCommends>().ReverseMap();

            //销售出库
            CreateMap<SalesReceipt, AddSalesReceiptCommands>().ReverseMap();
            CreateMap<SalesReceipt, DelSalesReceiptCommands>().ReverseMap();
            CreateMap<SalesReceipt, UpdateSalesReceiptCommands>().ReverseMap();

            //生产退料
            CreateMap<Productionreturn, AddProductionreturnCommands>().ReverseMap();
            CreateMap<Productionreturn, DelProductionreturnCommands>().ReverseMap();

            //采购入库
            CreateMap<Incominginformation, CreateIncominginformationsCommends>().ReverseMap();
            CreateMap<Incominginformation, DelIncominginformationsCommends>().ReverseMap();
            CreateMap<Incominginformation, UpdataIncominginformationsCommends>().ReverseMap();
            CreateMap<Arrivalnotice, UpdataArrivalnoticeStaturCommends>().ReverseMap();
            CreateMap<Materialmanagement, CreateMaterialmanagementCommands>().ReverseMap();
            CreateMap<Incominginformation, UpdataArrivalnoticeStaturCommends>().ReverseMap();
            CreateMap<Incominginformation, UpdataStorageStaturCommends>().ReverseMap();
            CreateMap<Arrivalnotice, AddArrivalnoticeCommands>().ReverseMap();

            //开票到票
            CreateMap<Billingmanagement, DelBillingmanagementCommands>().ReverseMap();
            CreateMap<Billingmanagement, AddBillingmanagementCommands>().ReverseMap();

            //到票管理
            CreateMap<Arrivalmanagement, DelArrivalmanagementCommands>().ReverseMap();
            CreateMap<Arrivalmanagement, AddArrivalmanagementCommands>().ReverseMap();


            //生产报工
            CreateMap<ProductionReport, AddProductionReportCommands>().ReverseMap();
            CreateMap<ProductionReport, DelProductionReportCommands>().ReverseMap();
            CreateMap<ProductionReport, UpdateProductionReportCommands>().ReverseMap();
            CreateMap<WorkOrder, DeleteWorksCommand>().ReverseMap();
            CreateMap<WorkOrder, UpdateWorksCommand>().ReverseMap();
            //生产领料
            CreateMap<Requisition, RequisitionCommand>().ReverseMap();
            CreateMap<Requisition, UpdateRequisitionCommand>().ReverseMap();
            //BOM
            CreateMap<BOM, AddBomCommand>().ReverseMap();
            CreateMap<BOM, UpdateBOMCommand>().ReverseMap();
            



            //生产工单--任务
            CreateMap<WorkOrder, CreateProductionworkCommends>().ReverseMap();
            CreateMap<WorkOrder, UpdataProductionworkCommends>().ReverseMap();




            CreateMap<Productionorders, CreateProductionordersCommends>().ReverseMap();


            CreateMap<woekderProess, CreateWorkderupdataZtCommends>().ReverseMap();


  

            


            //库存清单
            CreateMap<Inventorylist, AddInverlistcommand>().ReverseMap();
            //BOM管理
            CreateMap<BOMguan, AddBOMguancommand>().ReverseMap();
            CreateMap<BomOperate, AddBomOperatecommand>().ReverseMap();
            CreateMap<BOMguan, UpdateBOMguancommand>().ReverseMap();
        }
    }
}
